package com.chenyu.vo;

import sun.plugin2.message.Serializer;

import java.io.Serializable;

/**
 * @author Administrator
 * @version 1.0
 * @createDate 2019/8/6 20:50
 * @Description  后端返回结果对象
 */
public final class Result<T> implements Serializable{
    private String massage;
    private Boolean succeed;
    private T Date;


    private Result() {}

    public Result(String massage, Boolean succeed) {
        this.massage = massage;
        this.succeed = succeed;
    }

    public Result(String massage, Boolean succeed, T date) {
        this.massage = massage;
        this.succeed = succeed;
        Date = date;
    }

    public String getMassage() {
        return massage;
    }

    public Boolean getSucceed() {
        return succeed;
    }

    public T getDate() {
        return Date;
    }
}
